package com.thread.demo.lock;

import java.net.MalformedURLException;
import java.net.URL;

/**
 * @ProjectName: thread-demo
 * @Package: com.thread.demo.lock
 * @ClassName: TestA
 * @Author: mac
 * @Description:
 * @Date: 2021/8/5 4:38 下午
 * @Version: 1.0
 */
public class TestA {

    public static void main(String[] args) {

        try {
            URL url = new URL("http://baidu.com/asd");
            System.out.println(url.getPort());
        } catch (MalformedURLException e) {
            e.printStackTrace();
        }
    }
}
